/*
 * Copyright (c) 2021, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "eeprom_default.h"
#include <stdint.h>

#if TPS92912X
#ifdef A_VERSION
struct eepromField eeprom_default[EEPROM_DEFAULT_REGS] = {{0x80, 0x3F},
    {0x81, 0x3F}, {0x82, 0x3F}, {0x83, 0x3F}, {0x84, 0x3F}, {0x85, 0x3F},
    {0x86, 0x3F}, {0x87, 0x3F}, {0x88, 0x3F}, {0x89, 0x3F}, {0x8A, 0x3F},
    {0x8B, 0x3F}, {0xA0, 0xFF}, {0xA1, 0xFF}, {0xA2, 0xFF}, {0xA3, 0xFF},
    {0xA4, 0xFF}, {0xA5, 0xFF}, {0xA6, 0xFF}, {0xA7, 0xFF}, {0xA8, 0xFF},
    {0xA9, 0xFF}, {0xAA, 0xFF}, {0xAB, 0xFF}, {0xC0, 0x0}, {0xC1, 0x0},
    {0xC2, 0xFF}, {0xC3, 0xF}, {0xC4, 0xFF}, {0xC5, 0xF}, {0xC6, 0x08},
    {0xC7, 0xA7}, {0xC8, 0x3}, {0xC9, 0x0}, {0xCA, 0x0}, {0xCB, 0x0},
    {0xCC, 0x0}, {0xCD, 0x0}, {0xCE, 0x0}, {0xCF, 0x09}};
#else
struct eepromField eeprom_default[EEPROM_DEFAULT_REGS] = {{0x80, 0x3F},
    {0x81, 0x3F}, {0x82, 0x3F}, {0x83, 0x3F}, {0x84, 0x3F}, {0x85, 0x3F},
    {0x86, 0x3F}, {0x87, 0x3F}, {0x88, 0x3F}, {0x89, 0x3F}, {0x8A, 0x3F},
    {0x8B, 0x3F}, {0xA0, 0xFF}, {0xA1, 0xFF}, {0xA2, 0xFF}, {0xA3, 0xFF},
    {0xA4, 0xFF}, {0xA5, 0xFF}, {0xA6, 0xFF}, {0xA7, 0xFF}, {0xA8, 0xFF},
    {0xA9, 0xFF}, {0xAA, 0xFF}, {0xAB, 0xFF}, {0xC0, 0x0}, {0xC1, 0x0},
    {0xC2, 0xFF}, {0xC3, 0xF}, {0xC4, 0xFF}, {0xC5, 0xF}, {0xC6, 0x0},
    {0xC7, 0xA7}, {0xC8, 0x3}, {0xC9, 0x0}, {0xCA, 0x0}, {0xCB, 0x0},
    {0xCC, 0x0}, {0xCD, 0x0}, {0xCE, 0x0}, {0xCF, 0xB3}};
#endif
#elif TPS929160
struct eepromField eeprom_default[EEPROM_DEFAULT_REGS] = {{0x00, 0xFF},
    {0x01, 0xFF}, {0x02, 0xFF}, {0x03, 0xFF}, {0x04, 0xFF}, {0x05, 0xFF},
    {0x06, 0xFF}, {0x07, 0xFF}, {0x08, 0xFF}, {0x09, 0xFF}, {0x0A, 0xFF},
    {0x0B, 0xFF}, {0x0C, 0xFF}, {0x0D, 0xFF}, {0x0E, 0xFF}, {0x0F, 0xFF},
    {0x10, 0x00}, {0x11, 0x00}, {0x12, 0x00}, {0x13, 0x00}, {0x14, 0x00},
    {0x15, 0x00}, {0x16, 0x00}, {0x17, 0x00}, {0x20, 0x0F}, {0x21, 0x0F},
    {0x22, 0x0F}, {0x23, 0x0F}, {0x24, 0x0F}, {0x25, 0x0F}, {0x26, 0x0F},
    {0x27, 0x0F}, {0x28, 0x0F}, {0x29, 0x0F}, {0x2A, 0x0F}, {0x2B, 0x0F},
    {0x2C, 0x0F}, {0x2D, 0x0F}, {0x2E, 0x0F}, {0x2F, 0x0F}, {0x30, 0x00},
    {0x31, 0x00}, {0x32, 0x00}, {0x33, 0x00}, {0x34, 0x00}, {0x35, 0x00},
    {0x36, 0x00}, {0x37, 0x00}, {0x40, 0x33}, {0x41, 0x33}, {0x42, 0x33},
    {0x43, 0x33}, {0x44, 0x00}, {0x50, 0x3F}, {0x51, 0x3F}, {0x52, 0x3F},
    {0x53, 0x3F}, {0x54, 0x3F}, {0x55, 0x3F}, {0x56, 0x3F}, {0x57, 0x3F},
    {0x58, 0x3F}, {0x59, 0x3F}, {0x5A, 0x3F}, {0x5B, 0x3F}, {0x5C, 0x3F},
    {0x5D, 0x3F}, {0x5E, 0x3F}, {0x5F, 0x3F}, {0x60, 0x00}, {0x61, 0x00},
    {0x62, 0x00}, {0x63, 0x00}, {0x64, 0x00}, {0x65, 0x00}, {0x66, 0x00},
    {0x67, 0x00}, {0x70, 0x33}, {0x71, 0x33}, {0x72, 0x33}, {0x73, 0x33},
    {0x74, 0x00}, {0x75, 0x00}, {0x76, 0x00}, {0x77, 0x00}, {0x78, 0x00},
    {0x79, 0x00}, {0x7A, 0x60}, {0x7B, 0x00}, {0x7C, 0x00}, {0x7D, 0x00},
    {0x7E, 0x30}, {0x80, 0x00}, {0x81, 0x00}, {0x82, 0x00}, {0x83, 0x00},
    {0x84, 0x01}, {0x85, 0x00}, {0x86, 0x10}, {0x87, 0x81}};
#else
#ifdef A_VERSION
struct eepromField eeprom_default[EEPROM_DEFAULT_REGS] = {{0x00, 0xFF},
    {0x01, 0xFF}, {0x02, 0xFF}, {0x03, 0xFF}, {0x04, 0xFF}, {0x05, 0xFF},
    {0x06, 0xFF}, {0x07, 0xFF}, {0x08, 0xFF}, {0x09, 0xFF}, {0x0A, 0xFF},
    {0x0B, 0xFF}, {0x0C, 0xFF}, {0x0D, 0xFF}, {0x0E, 0xFF}, {0x0F, 0xFF},
    {0x10, 0xFF}, {0x11, 0xFF}, {0x12, 0xFF}, {0x13, 0xFF}, {0x14, 0xFF},
    {0x15, 0xFF}, {0x16, 0xFF}, {0x17, 0xFF}, {0x20, 0x0F}, {0x21, 0x0F},
    {0x22, 0x0F}, {0x23, 0x0F}, {0x24, 0x0F}, {0x25, 0x0F}, {0x26, 0x0F},
    {0x27, 0x0F}, {0x28, 0x0F}, {0x29, 0x0F}, {0x2A, 0x0F}, {0x2B, 0x0F},
    {0x2C, 0x0F}, {0x2D, 0x0F}, {0x2E, 0x0F}, {0x2F, 0x0F}, {0x30, 0x0F},
    {0x31, 0x0F}, {0x32, 0x0F}, {0x33, 0x0F}, {0x34, 0x0F}, {0x35, 0x0F},
    {0x36, 0x0F}, {0x37, 0x0F}, {0x40, 0x77}, {0x41, 0x77}, {0x42, 0x77},
    {0x43, 0x77}, {0x44, 0x00}, {0x50, 0x3F}, {0x51, 0x3F}, {0x52, 0x3F},
    {0x53, 0x3F}, {0x54, 0x3F}, {0x55, 0x3F}, {0x56, 0x3F}, {0x57, 0x3F},
    {0x58, 0x3F}, {0x59, 0x3F}, {0x5A, 0x3F}, {0x5B, 0x3F}, {0x5C, 0x3F},
    {0x5D, 0x3F}, {0x5E, 0x3F}, {0x5F, 0x3F}, {0x60, 0x3F}, {0x61, 0x3F},
    {0x62, 0x3F}, {0x63, 0x3F}, {0x64, 0x3F}, {0x65, 0x3F}, {0x66, 0x3F},
    {0x67, 0x3F}, {0x70, 0x77}, {0x71, 0x77}, {0x72, 0x77}, {0x73, 0x77},
    {0x74, 0x00}, {0x75, 0x00}, {0x76, 0x00}, {0x77, 0x00}, {0x78, 0x00},
    {0x79, 0x00}, {0x7A, 0x60}, {0x7B, 0x00}, {0x7C, 0x00}, {0x7D, 0x00},
    {0x7E, 0x30}, {0x80, 0x00}, {0x81, 0x00}, {0x82, 0x00}, {0x83, 0x00},
    {0x84, 0x01}, {0x85, 0x08}, {0x86, 0x10}, {0x87, 0x75}};
#else
struct eepromField eeprom_default[EEPROM_DEFAULT_REGS] = {{0x00, 0xFF},
    {0x01, 0xFF}, {0x02, 0xFF}, {0x03, 0xFF}, {0x04, 0xFF}, {0x05, 0xFF},
    {0x06, 0xFF}, {0x07, 0xFF}, {0x08, 0xFF}, {0x09, 0xFF}, {0x0A, 0xFF},
    {0x0B, 0xFF}, {0x0C, 0xFF}, {0x0D, 0xFF}, {0x0E, 0xFF}, {0x0F, 0xFF},
    {0x10, 0xFF}, {0x11, 0xFF}, {0x12, 0xFF}, {0x13, 0xFF}, {0x14, 0xFF},
    {0x15, 0xFF}, {0x16, 0xFF}, {0x17, 0xFF}, {0x20, 0x0F}, {0x21, 0x0F},
    {0x22, 0x0F}, {0x23, 0x0F}, {0x24, 0x0F}, {0x25, 0x0F}, {0x26, 0x0F},
    {0x27, 0x0F}, {0x28, 0x0F}, {0x29, 0x0F}, {0x2A, 0x0F}, {0x2B, 0x0F},
    {0x2C, 0x0F}, {0x2D, 0x0F}, {0x2E, 0x0F}, {0x2F, 0x0F}, {0x30, 0x0F},
    {0x31, 0x0F}, {0x32, 0x0F}, {0x33, 0x0F}, {0x34, 0x0F}, {0x35, 0x0F},
    {0x36, 0x0F}, {0x37, 0x0F}, {0x40, 0x77}, {0x41, 0x77}, {0x42, 0x77},
    {0x43, 0x77}, {0x44, 0x00}, {0x50, 0x3F}, {0x51, 0x3F}, {0x52, 0x3F},
    {0x53, 0x3F}, {0x54, 0x3F}, {0x55, 0x3F}, {0x56, 0x3F}, {0x57, 0x3F},
    {0x58, 0x3F}, {0x59, 0x3F}, {0x5A, 0x3F}, {0x5B, 0x3F}, {0x5C, 0x3F},
    {0x5D, 0x3F}, {0x5E, 0x3F}, {0x5F, 0x3F}, {0x60, 0x3F}, {0x61, 0x3F},
    {0x62, 0x3F}, {0x63, 0x3F}, {0x64, 0x3F}, {0x65, 0x3F}, {0x66, 0x3F},
    {0x67, 0x3F}, {0x70, 0x77}, {0x71, 0x77}, {0x72, 0x77}, {0x73, 0x77},
    {0x74, 0x00}, {0x75, 0x00}, {0x76, 0x00}, {0x77, 0x00}, {0x78, 0x00},
    {0x79, 0x00}, {0x7A, 0x60}, {0x7B, 0x00}, {0x7C, 0x00}, {0x7D, 0x00},
    {0x7E, 0x30}, {0x80, 0x00}, {0x81, 0x00}, {0x82, 0x00}, {0x83, 0x00},
    {0x84, 0x01}, {0x85, 0x00}, {0x86, 0x10}, {0x87, 0x1B}};
#endif
#endif
